<a href="javascript:void(0)" onclick="do_cancel(<{$bill_id}>)">删除</a>
<script>
function do_cancel(e){
    if(confirm('是否作废')){
        new Request({
            url:'index.php?app=finance&ctl=bill_item&act=do_cancel&id='+e,
            method:'get',
            onSuccess:function(json){
                rs = JSON.decode(json);
                if(rs.res == 'fail'){
                    alert(rs.msg);
                }
                finderGroup['<{$finder_id}>'].refresh();
            }
        }).send();
    }
}
</script>